﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        xmlns:EliteControls="clr-namespace:EliteControls;assembly=EliteControls" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:s="clr-namespace:System;assembly=mscorlib"
        mc:Ignorable="d" x:Class="Log.MainWindow" Width="1649" Height="1138" WindowState="Maximized" Background="Black" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" Icon="eliteFox2.png" BorderBrush="#FFFF5100" WindowStyle="None" Foreground="#FFFF5100" Title="Ships Log">

    <WindowChrome.WindowChrome>
        <WindowChrome CaptionHeight="{Binding ActualHeight,ElementName=titlebar}"/>
    </WindowChrome.WindowChrome>

    <Grid Background="Black" >
        <Grid>
            <DockPanel LastChildFill="True">
                <Border DockPanel.Dock="Top" Height="25" x:Name="titlebar">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="Black" Offset="1"/>
                            <GradientStop Color="#FFFF5100"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <TextBlock Text="{Binding Title, RelativeSource={RelativeSource FindAncestor,AncestorType=Window},FallbackValue=Title}" 
                       Margin="10,0,0,0"
                       VerticalAlignment="Center">

                    </TextBlock>
                </Border>
                <Border BorderBrush="#FFFF5100" BorderThickness="0" Padding="4">

                </Border>
            </DockPanel>
        </Grid>
        <Grid HorizontalAlignment="Left">
            <Image Source="Images/Base.png" Stretch="Fill" VerticalAlignment="Bottom" Height="320.834" >

            </Image>
            <Border Margin="85,51,102,83" BorderBrush="#FFF2730B" BorderThickness="1" Opacity="0.705" CornerRadius="3"/>
            <Border Margin="85,41,102,93" BorderBrush="#FFF2730B" BorderThickness="1" Opacity="0.035" CornerRadius="3">
                <Border.Background>
                    <ImageBrush ImageSource="Images/Overlay2.png"/>
                </Border.Background>

            </Border>
            <WrapPanel Height="20" VerticalAlignment="Top" Margin="85,37,102,0" >
                <Button Content="Status" Margin="10,0,0,0" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_1"/>
                <Button Content="Ship" Margin="10,0,0,0" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_2"/>
                <Button Content="Commodities" Margin="10,0,0,0" VerticalAlignment="Top" Width="93" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_3"/>
                <Button Content="Recomendations" Margin="10,0,0,0" VerticalAlignment="Top" Width="103" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_4"/>
                <Button Content="Screen Grabs" Margin="10,0,0,0" VerticalAlignment="Top" Width="91" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_5"/>
                <Button Content="Settings" Margin="10,0,0,0" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_6"/>
                <Button Content="Exit" Margin="10,0,0,0" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Right" Click="Button_Click"/>
            </WrapPanel>
            <ProgressBar x:Name="DownloadProgress" HorizontalAlignment="Right" Width="30" Margin="0,51,67,83" Background="{x:Null}" BorderBrush="#FF311101" IsIndeterminate="True" RenderTransformOrigin="0.5,0.5" Maximum="10" Orientation="Vertical" SmallChange="1">
                <ProgressBar.Effect>
                    <DropShadowEffect Color="#FFFF5D00" ShadowDepth="10" BlurRadius="20" Opacity="0.96" Direction="90"/>
                </ProgressBar.Effect>
                <ProgressBar.Foreground>
                    <LinearGradientBrush EndPoint="1,1" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
                        <LinearGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform Angle="180" CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </LinearGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF130901" Offset="1"/>
                        <GradientStop Color="#FFFFB900"/>
                        <GradientStop Color="#FF9B3F00" Offset="0.127"/>
                    </LinearGradientBrush>
                </ProgressBar.Foreground>

                <ProgressBar.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="180"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </ProgressBar.RenderTransform>
            </ProgressBar>
            <ItemsControl x:Name="DownloadText" FontSize="20" FontFamily="Segoe WP Black" HorizontalAlignment="Right" Width="30" ItemStringFormat="" Margin="0,51,61,83" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Foreground="Black" ItemsSource="{Binding }">

            </ItemsControl>
            <ProgressBar x:Name="autoUpdateProgressBar" Height="6" Margin="54,0,51,38" VerticalAlignment="Bottom" Background="{x:Null}" BorderBrush="#FF311101" Maximum="{Binding Value, ElementName=Slider1}" Value="{Binding progressTimer.}" Foreground="#FFB03B00" SmallChange="1" Opacity="0.7" RenderTransformOrigin="0,0">
                <ProgressBar.Effect>
                    <DropShadowEffect Color="#FFFB5806" BlurRadius="28" ShadowDepth="0"/>
                </ProgressBar.Effect>
            </ProgressBar>

        </Grid>
        <Grid x:Name="Status" Margin="0,0,10,0" Visibility="Hidden">
            <Label Content="Commander" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="86,52,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label x:Name="cmdName" Content="Jamerson" Foreground="#FFFF8000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="96,61,0,0" Width="449" FontSize="48" FontFamily="Tw Cen MT Condensed Extra Bold" ToolTip="Commander">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="21"/>
                </Label.Effect>
            </Label>

            <Label x:Name="cash" Content="1000" Foreground="#FFFF8000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="97,134,0,0" Width="448" FontSize="48" FontFamily="Tw Cen MT Condensed Extra Bold">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="21"/>
                </Label.Effect>
            </Label>
            <EliteControls:CombatRank x:Name="combatRank" Margin="117,235,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="277" Height="232"/>
            <EliteControls:ExplorationRank x:Name="exploreRank" Margin="117,486,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Height="80" RenderTransformOrigin="0.588,1.15"/>
            <EliteControls:CQCRank x:Name="cqcRank" Margin="217,486,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Height="80" RenderTransformOrigin="-0.112,0.375"/>
            <EliteControls:TradeRank x:Name="tradeRank" Margin="314,486,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Height="80"/>

            <EliteControls:PowerPlay x:Name="powerPlay" Margin="217,800,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Height="80" ToolTip="Power Play Fealty" RenderTransformOrigin="0.562,0.6" />
            <Viewbox Margin="117,591,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="277" Height="184">
                <Grid HorizontalAlignment="Left" Height="203"  VerticalAlignment="Top" Width="305">
                    <EliteControls:Rating x:Name="federationRank" PaintBrush="#FF000CFF"  Foreground="{x:Null}" IconFile="Images/Federation.png" Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" ToolTip="Federation Rank"/>
                    <EliteControls:Rating x:Name="serviceRank" PaintBrush="#FF00AEFF"  Foreground="{x:Null}" IconFile="Images/Service.png" Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="154,100,0,0" ToolTip="Service Status" Value="-2"/>
                    <EliteControls:Rating x:Name="legalRank" PaintBrush="#FFAC0C0C"  Foreground="{x:Null}" Width="100" Height="100" IconFile="Images/Legal.png" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="49,100,0,0" ToolTip="Legal Status"/>
                    <EliteControls:Rating x:Name="alianceRank" PaintBrush="#FF00FF80"  Foreground="{x:Null}" Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="105,0,0,0" IconFile="Images/Alliance.png" ToolTip="Aliance Rank"/>
                    <EliteControls:Rating x:Name="empireRank" PaintBrush="#FFFFC500"  Foreground="{x:Null}" IconFile="Images/Empire.png" Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="205,0,0,0" ToolTip="Empire Rank"/>
                </Grid>
            </Viewbox>
            <chartingToolkit:Chart x:Name="chart1" Title="CashFlow" Foreground="#FFFF7400" Margin="430,226,123,106">

                <chartingToolkit:Chart.Axes>
                    <chartingToolkit:DateTimeAxis x:Name="dateTimeAxis" Title="Time" Orientation="X" IntervalType="Months" Interval="1"/>
                    <chartingToolkit:LinearAxis x:Name="cashAxis" Title="Credits"/>
                </chartingToolkit:Chart.Axes>
                <chartingToolkit:Chart.DataContext>
                    <PointCollection>1,10 2,20 3,30 4,40</PointCollection>
                </chartingToolkit:Chart.DataContext>
                <chartingToolkit:AreaSeries x:Name="Cash" Title="Cash" Foreground="#FF2EFF00" IndependentValuePath="date" DependentValuePath="StackedCashValue" Background="#FF2EFF00">
                    <chartingToolkit:AreaSeries.Style>

                        <Style TargetType="chartingToolkit:AreaSeries">
                            <Setter Property="IsTabStop" Value="False"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="chartingToolkit:AreaSeries">
                                        <Canvas x:Name="PlotArea" Background="Black">
                                            <Path Data="{TemplateBinding Geometry}" StrokeThickness="3" Fill="#FF12C10A" Style="{TemplateBinding PathStyle}" Opacity="1" Stroke="{x:Null}" />
                                        </Canvas>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </chartingToolkit:AreaSeries.Style>
                </chartingToolkit:AreaSeries>
                <chartingToolkit:AreaSeries x:Name="Cargo" Title="Cargo" Background="#FFE4E422" Foreground="#FFFF8000" IndependentValuePath="date" DependentValuePath="StackedCargoValue" >
                    <chartingToolkit:AreaSeries.Style>
                        <Style TargetType="chartingToolkit:AreaSeries">
                            <Setter Property="IsTabStop" Value="False"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="chartingToolkit:AreaSeries">
                                        <Canvas x:Name="PlotArea">
                                            <Path Data="{TemplateBinding Geometry}" StrokeThickness="3" Fill="#FFE4E422" Style="{TemplateBinding PathStyle}" Opacity="1" />
                                        </Canvas>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </chartingToolkit:AreaSeries.Style>
                </chartingToolkit:AreaSeries>
                <chartingToolkit:AreaSeries x:Name="Ship" Title="Ship" Background="#FF1046D4" Foreground="#FFFF8000" IndependentValuePath="date" DependentValuePath="StackedShipValue">
                    <chartingToolkit:AreaSeries.Style>
                        <Style TargetType="chartingToolkit:AreaSeries">
                            <Setter Property="IsTabStop" Value="False"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="chartingToolkit:AreaSeries">
                                        <Canvas x:Name="PlotArea">
                                            <Path Data="{TemplateBinding Geometry}" StrokeThickness="3" Fill="#FF1046D4" Style="{TemplateBinding PathStyle}" Opacity="1" />
                                        </Canvas>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </chartingToolkit:AreaSeries.Style>
                </chartingToolkit:AreaSeries>
                <chartingToolkit:AreaSeries x:Name="Dept" Title="Dept" Background="Red" Foreground="#FFFF8000" IndependentValuePath="date" DependentValuePath="debt">
                    <chartingToolkit:AreaSeries.Style>
                        <Style TargetType="chartingToolkit:AreaSeries">
                            <Setter Property="IsTabStop" Value="False"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="chartingToolkit:AreaSeries">
                                        <Canvas x:Name="PlotArea">
                                            <Path Data="{TemplateBinding Geometry}" StrokeThickness="3" Fill="#FF9C0C0C" Style="{TemplateBinding PathStyle}" Opacity="1" />
                                        </Canvas>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </chartingToolkit:AreaSeries.Style>
                </chartingToolkit:AreaSeries>
            </chartingToolkit:Chart>
            <Label Content="Credits" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="86,123,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Combat Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="213,226,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Explorer Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="114,467,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="CQC Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="222,467,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Trade Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="320,467,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Federation Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="115,574,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Aliance Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="220,574,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Empire Rank" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="310,574,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Legal Status" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="170,668,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Service Status" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="261,668,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>
            <Label Content="Powerplay Fealty" Foreground="#FFFF8000" ContentStringFormat="Commander" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="208,776,0,0">
                <Label.Effect>
                    <DropShadowEffect Color="#FFFF8000" ShadowDepth="0" BlurRadius="25"/>
                </Label.Effect>
            </Label>

        </Grid>
        <Grid x:Name="ShipPage" Margin="0,0,10,0" Visibility="Hidden">
            <WebBrowser x:Name="webBrowser1" Margin="118,78,118,112" Opacity="0.9" OpacityMask="Black"/>

        </Grid>
        <Grid x:Name="Comod" Margin="107,78,120,101" Visibility="Hidden">
            <Grid.RowDefinitions>
                <RowDefinition Height="282*"/>
                <RowDefinition Height="283*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="244*"/>
                <ColumnDefinition Width="463*"/>
            </Grid.ColumnDefinitions>
            <DataGrid x:Name="Stations1" Grid.Row="0" Grid.Column="0" Foreground="#FFFF7400" Background="{x:Null}" BorderBrush="#FFFF7400" ItemsSource="{Binding Mode=OneTime}" HorizontalGridLinesBrush="#FFF56400" VerticalGridLinesBrush="#FFF56400" HeadersVisibility="Column" AlternationCount="2" SelectionChanged="Stations1_SelectionChanged" AutoGenerateColumns="False" Margin="0,0,0,476" Grid.RowSpan="2">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding SystemName, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="System"  Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding StationName, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Station" Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding updated, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="LastUpdated" Width="70" Foreground="#FFFF7501"/>
                </DataGrid.Columns>
                <DataGrid.ColumnHeaderStyle>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF532600" />
                    </Style>
                </DataGrid.ColumnHeaderStyle>
                <DataGrid.RowStyle>
                    <Style TargetType="{x:Type DataGridRow}">
                        <Style.Triggers>
                            <Trigger Property="AlternationIndex" Value="0">
                                <Setter Property="Background" Value="#FF210C00" />
                            </Trigger>
                            <Trigger Property="AlternationIndex" Value="1">
                                <Setter Property="Background" Value="Black" />
                            </Trigger>
                            <DataTrigger Binding="{Binding Path=Selectable}" Value="False">
                                <DataTrigger.Setters>
                                    <Setter Property="Background" Value="{x:Null}" />
                                </DataTrigger.Setters>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DataGrid.RowStyle>
            </DataGrid>
            <DataGrid x:Name="Comodities1" Grid.Row="0" Grid.Column="1" Foreground="#FFFF7400" Background="{x:Null}" BorderBrush="#FFFF7400" ItemsSource="{Binding Mode=OneTime}" HorizontalGridLinesBrush="#FFF56400" VerticalGridLinesBrush="#FFF56400" HeadersVisibility="Column" AlternationCount="2" AutoGenerateColumns="False" Margin="0,0,0,476" Grid.RowSpan="2">
                <DataGrid.ColumnHeaderStyle>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF532600" />
                    </Style>
                </DataGrid.ColumnHeaderStyle>
                <DataGrid.RowStyle>
                    <Style TargetType="{x:Type DataGridRow}">
                        <Style.Triggers>
                            <Trigger Property="AlternationIndex" Value="0">
                                <Setter Property="Background" Value="#FF210C00" />
                            </Trigger>
                            <Trigger Property="AlternationIndex" Value="1">
                                <Setter Property="Background" Value="Black" />
                            </Trigger>
                            <DataTrigger Binding="{Binding Path=Selectable}" Value="False">
                                <DataTrigger.Setters>
                                    <Setter Property="Background" Value="{x:Null}" />
                                </DataTrigger.Setters>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DataGrid.RowStyle>
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Name, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Name"  Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding BuyPrice, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="BuyPrice" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding Supply, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Supply" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding SellPrice, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="SellPrice" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding Demand, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Demand" Width="100" Foreground="#FFFF7501"/>
                </DataGrid.Columns>
            </DataGrid>
            <DataGrid x:Name="Stations2" Grid.Row="1" Grid.Column="0" Foreground="#FFFF7400" Background="{x:Null}" BorderBrush="#FFFF7400" ItemsSource="{Binding Mode=OneTime}" HorizontalGridLinesBrush="#FFF56400" VerticalGridLinesBrush="#FFF56400" HeadersVisibility="Column" AlternationCount="2" AutoGenerateColumns="False" SelectionChanged="Stations2_SelectionChanged" Margin="0,0.342,0,0">
                <DataGrid.ColumnHeaderStyle>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF532600" />
                    </Style>
                </DataGrid.ColumnHeaderStyle>
                <DataGrid.RowStyle>
                    <Style TargetType="{x:Type DataGridRow}">
                        <Style.Triggers>
                            <Trigger Property="AlternationIndex" Value="0">
                                <Setter Property="Background" Value="#FF210C00" />
                            </Trigger>
                            <Trigger Property="AlternationIndex" Value="1">
                                <Setter Property="Background" Value="Black" />
                            </Trigger>
                            <DataTrigger Binding="{Binding Path=Selectable}" Value="False">
                                <DataTrigger.Setters>
                                    <Setter Property="Background" Value="{x:Null}" />
                                </DataTrigger.Setters>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DataGrid.RowStyle>
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding SystemName, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="System"  Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding StationName, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Station" Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding updated, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="LastUpdated" Width="70" Foreground="#FFFF7501"/>
                </DataGrid.Columns>
            </DataGrid>
            <DataGrid x:Name="Comodities2" Grid.Row="1" Grid.Column="1" Foreground="#FFFF7400" Background="{x:Null}" BorderBrush="#FFFF7400" ItemsSource="{Binding Mode=OneTime}" HorizontalGridLinesBrush="#FFF56400" VerticalGridLinesBrush="#FFF56400" HeadersVisibility="Column" AlternationCount="2" AutoGenerateColumns="False" Margin="0,0.342,0,0">
                <DataGrid.ColumnHeaderStyle>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF532600" />
                    </Style>
                </DataGrid.ColumnHeaderStyle>
                <DataGrid.RowStyle>
                    <Style TargetType="{x:Type DataGridRow}">
                        <Style.Triggers>
                            <Trigger Property="AlternationIndex" Value="0">
                                <Setter Property="Background" Value="#FF210C00" />
                            </Trigger>
                            <Trigger Property="AlternationIndex" Value="1">
                                <Setter Property="Background" Value="Black" />
                            </Trigger>
                            <DataTrigger Binding="{Binding Path=Selectable}" Value="False">
                                <DataTrigger.Setters>
                                    <Setter Property="Background" Value="{x:Null}" />
                                </DataTrigger.Setters>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DataGrid.RowStyle>
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Name, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Name"  Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding BuyPrice, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="BuyPrice" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding Supply, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Supply" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding SellPrice, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="SellPrice" Width="100" Foreground="#FFFF7501"/>
                    <DataGridTextColumn Binding="{Binding Demand, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Demand" Width="100" Foreground="#FFFF7501"/>
                </DataGrid.Columns>
            </DataGrid>


        </Grid>
        <Grid x:Name="recomend" Margin="0,0,10,0" Visibility="Hidden" >
            <DataGrid x:Name="RecomendationList" Margin="118,108,128,118" FrozenColumnCount="3"  Foreground="#FFFF7400" Background="{x:Null}" BorderBrush="#FFFF7400" ItemsSource="{Binding Mode=OneTime}" HorizontalGridLinesBrush="#FFF56400" VerticalGridLinesBrush="#FFF56400" HeadersVisibility="Column" AlternationCount="2" AutoGenerateColumns="False">
                <DataGrid.ColumnHeaderStyle>
                    <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="Background" Value="#FF532600" />
                    </Style>
                </DataGrid.ColumnHeaderStyle>
                <DataGrid.RowStyle>
                    <Style TargetType="{x:Type DataGridRow}">
                        <Style.Triggers>
                            <Trigger Property="AlternationIndex" Value="0">
                                <Setter Property="Background" Value="#FF210C00" />
                            </Trigger>
                            <Trigger Property="AlternationIndex" Value="1">
                                <Setter Property="Background" Value="Black" />
                            </Trigger>
                            <DataTrigger Binding="{Binding Path=Selectable}" Value="False">
                                <DataTrigger.Setters>
                                    <Setter Property="Background" Value="{x:Null}" />
                                </DataTrigger.Setters>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DataGrid.RowStyle>
                <DataGrid.Columns>


                    <DataGridTextColumn x:Name="FromSystem" Binding="{Binding FromSystem, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="From System" Width="*" Foreground="#FFFF7501"  />

                    <DataGridTextColumn x:Name="FromStation" Binding="{Binding FromStation, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="From Station" Width="*" Foreground="#FFFF7501"/>
                    <DataGridTextColumn x:Name="Comodity" Binding="{Binding Comodity, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Commodity" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="Amount" Binding="{Binding Amount, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Quantity" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="Cost" Binding="{Binding Cost, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Cost" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="Value" Binding="{Binding Value, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Gross Profit" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="ForProfit" Binding="{Binding ForProfit, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Net Profit" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="ToSystem" Binding="{Binding ToSystem, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="To System" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="ToStation" Binding="{Binding ToStation, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="To Station" Width="*" Foreground="#FFFF7501" />
                    <DataGridTextColumn x:Name="Recentcey" Binding="{Binding Recentcey, Mode=OneTime}" ClipboardContentBinding="{x:Null}" Header="Data Date" Width="*" Foreground="#FFFF7501" />
                </DataGrid.Columns>
            </DataGrid>


        </Grid>
        <Grid x:Name="grabs" Margin="0,0,10,0" Visibility="Hidden">
            <Image x:Name="screenGrabImage" Margin="121,90,128,169" />
            <TextBox x:Name="imageFileName" VerticalAlignment="Bottom" Margin="121,0,128,112" Height="35" Text="Bannana" FontSize="20" Background="{x:Null}" Foreground="#FFFF6800" BorderBrush="#FFFF6800" />

        </Grid>
        <Grid x:Name="settings" Margin="0,0,10,0" >

            <Border BorderBrush="#FFE64D06" BorderThickness="1" HorizontalAlignment="Left" Height="100" Margin="134,104,0,0" VerticalAlignment="Top" Width="182">
                <Slider x:Name="Slider1" HorizontalAlignment="Left" VerticalAlignment="Top" Height="64" Width="140" Margin="13,16,0,0" Foreground="#FFFF6800" Value="120" Minimum="120" Maximum="7200" />

            </Border>
            <Label Content="Auto Refresh" Margin="152,86,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Black" Foreground="#FFFF6800"/>
            <Button x:Name="timerEnabledButton" Content="Start" Margin="180,159,0,0" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Click="Button_Click_7"/>
            <Border BorderBrush="#FFE64D06" BorderThickness="1" HorizontalAlignment="Left" Height="68" Margin="134,246,0,0" VerticalAlignment="Top" Width="182">
                <Button Content="Forget Me" VerticalAlignment="Top" Width="80" Foreground="#FFFF6800" Background="#FF361701" HorizontalAlignment="Left" Margin="42,25,0,0" Click="Button_Click_8"/>
            </Border>
            <Label Content="Companion app log-in" Margin="152,228,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Black" Foreground="#FFFF6800"/>
            <Border BorderBrush="#FFE64D06" BorderThickness="1" HorizontalAlignment="Left" Height="68" Margin="134,350,0,0" VerticalAlignment="Top" Width="182">
                <RadioButton Content="Enable Verbose &#xD;&#xA;Network Logging&#xD;&#xA;" HorizontalAlignment="Left" VerticalAlignment="Top" Height="31" Width="123" Margin="17,21,0,0" Checked="RadioButton_Checked" Foreground="#FFE34800" Background="Black" BorderBrush="#FFE34800" Unchecked="RadioButton_Unchecked"/>
            </Border>
            <Label Content="Elite Dangerous Config" Margin="152,334,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Black" Foreground="#FFFF6800"/>


        </Grid>


    </Grid>

</Window>
